package com.gibs.peixunapi.service;

import com.gibs.peixunapi.VO.StudyRecordVO;
import com.gibs.peixunapi.model.ExerciseRecord;
import com.gibs.peixunapi.result.Result;

import javax.validation.Valid;
import java.util.List;

public interface ExerciseRecordService {

    Result create(@Valid ExerciseRecord object);

    /**
     * 新增学员用户的该章节练习题回答记录
     * @param studentId 学生用户id
     * @param recordVOList  练习题记录VO类
     * @return
     */
	Result create(Integer studentId, List<StudyRecordVO> recordVOList);


    Result delete(Integer id);

    /**
     * 获取学员用户的错题集合
     *
     * @param studentId 学生用户id
     * @param courseId  课程id
     * @param chapterId 章节id
     * @param type      题目类型
     * @param current   页数
     * @param limit     最大条数
     * @return 统一处理结果
     */
    Result getListPage(Integer studentId, Integer courseId, Integer chapterId, String type, Integer current, Integer limit);

}

